<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<h2>查看APP信息：<i class="glyphicon glyphicon-user"></i><span>${user.devName }</span></h2>
</nav>
<br/><br/><br/><br/><br/>
	<form id="albumEditForm" enctype="" action="managementSpingAlbumUpdate"
		method="post">
		<table id="albumEdit" style="margin:0px auto">
			<tr>
				<td>软件名称*</td>
				<td><input class="txt" type="text" disabled="disabled" id="softwareName" name="softwareName" value="${app.softwareName }" style="width:250px;"/><label
					class="error"></label></td><Br/>
			</tr>
			<tr>
				<td>APK名称*</td>
				<td><input class="txt" type="text" value="${app.APKName }" disabled="disabled" id="APKName" name="APKName" style="width:250px;"/><label
					class=""></label></td>
			</tr>
			
			<tr>
				<td>支持ROM*</td>
				<td><input class="txt" type="text" disabled="disabled" id="supportROM" name="supportROM" value="${app.supportROM }" style="width:250px;"/><label
					class="error"></label></td>
			</tr>
			<tr>
				<td>界面语言*</td>
				<td><input class="txt" type="text" disabled="disabled" id="interfaceLanguage" name="interfaceLanguage" value="${app.interfaceLanguage }" style="width:250px;"/><label
					class="error"></label></td>
			</tr>
			<tr>
				<td>软件大小*</td>
				<td><input class="txt" type="text" disabled="disabled"  id="softwareSize" name="softwareSize" value="${app.softwareSize }"  style="width:250px;"/><label
					class="error"></label></td>
			</tr>
			<tr>
				<td>下载次数*</td>
				<td><input class="txt" type="text" disabled="disabled"  id="downloads" name="downloads" value="${app.downloads }"  style="width:250px;"/><label
					class="error"></label></td>
			</tr>
			<tr>
				<td>所属平台*</td>
				<td><input class="txt" type="text" disabled="disabled"  id="flatform" name="flatform" value="${app.flatform.valueName }"  style="width:250px;"/><label
					class="error"></label></td>
			</tr>
			<tr>
				<td>所属分类*</td>
				<td><input class="txt" type="text" disabled="disabled"  id="category" name="category" value="${app.categoryLevel1.categoryName }-->${app.categoryLevel2.categoryName }-->${app.categoryLevel3.categoryName }"  style="width:250px;"/><label
					class="error"></label></td>
			</tr>
			<tr>
				<td>APP状态*</td>
				<td><input class="txt" type="text" disabled="disabled" id="status" name="status" value="${app.status.valueName }"  style="width:250px;"/><label
					class="error"></label></td>
			</tr>
			<tr>
				<td>应用简介*</td>
				<td><textarea name="appInfo" disabled="disabled" style="width:250px;">${app.appInfo }</textarea></td>
			</tr>
			<tr>
				<td>LOGO图片*</td>
				<td><img src="${app.logoLocPath }" alt="" /><br /></td>
			</tr>
			
		</table>
		<h2 style="margin: 0px auto">历史版本列表</h2>
	<c:if test="${appVersions != null }">
	<table border="1">
		<tr>
			<th>软件名称</th>
			<th>版本号</th>
			<th>版本大小（单位：M）</th>
			<th>发布状态</th>
			<th>APK文件下载</th>
			<th>最新更新时间</th>

		</tr>
		<c:forEach var="m" items="${appVersions}">
			<tr>
				<td>${m.appInfo.softwareName}</td>
				<td>${m.versionNo}</td>
				<td>${m.versionSize}</td>
				<td>${m.publishStatus.valueName}</td>
				<td>${m.apkFileName}</td>
				<td><fmt:formatDate value="${m.modifyDate}" pattern="yyyy-MM-dd"/> </td>
			</tr>
		</c:forEach>
	</table>
	</c:if>
	</form>
	<button type="button" class="btn btn-info" id="returnPage">返回</button>